package mnEsq;

import java.awt.GridLayout;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.BevelBorder;
import javax.swing.ImageIcon;
import java.awt.Font;

@SuppressWarnings("serial")
public class btMovimentos extends JPanel {
	
	private JPanel panel_2;
	JPanel pDiversos;

	/**
	 * Create the panel.
	 */
	public btMovimentos() {
		//this.setPreferredSize(new Dimension(180,496));
		panel_2 = new JPanel();
		panel_2.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseClicked(MouseEvent arg0) {
				if(pDiversos.isVisible()==true){
					pDiversos.setVisible(false);
				}
				else {
					pDiversos.setVisible(true);
				}
			}
		});
		panel_2.setBounds(0, 0, 180, 36);
		panel_2.setBorder(null);
		this.add(panel_2);
		this.setLayout(null);
		
		JLabel lblDiversos = new JLabel("Movimentos");
		lblDiversos.setFont(new Font("Tahoma", Font.PLAIN, 12));
		panel_2.add(lblDiversos);
		
		pDiversos = new JPanel();
		pDiversos.setBounds(0, 37, 180, 459);
		this.add(pDiversos);
		pDiversos.setLayout(new GridLayout(17, 0, 0, 0));
		
		JLabel lblNewLabel = new JLabel("");
		lblNewLabel.setFont(new Font("Tahoma", Font.PLAIN, 12));
		lblNewLabel.setIcon(new ImageIcon(btMovimentos.class.getResource("/Layout/menu_bt_teste.png")));
		pDiversos.add(lblNewLabel);
	}

}
